package com.slkj.shilixiaoyuanapp.net;

/**
 * Created  on 2018/6/25 0025
 *
 * @author 唐开阔
 * @describe
 */
public class CommonResult<T> {

    /**
     * msg : 登录成功
     * menuList : []
     * user : {"allPId":[],"comPId":5,"partitionId":null,"roleId":null,"cpId":null,"userId":10,"username":"app测试"}
     * status : 1
     */

    private String status;
    private T data;
    private String errorCode;
    private String errorMsg;

    public CommonResult(T data) {
        this.data = data;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
